package com.kx.center.auth;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.kx.center.enumerate.AuthenticationMethod;
import com.kx.center.enumerate.Privilege;

@Documented
@Inherited
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Authentication {
	boolean validate() default true;
	Privilege[] privilege() default Privilege.NONE;
	AuthenticationMethod[] method() default AuthenticationMethod.KEY;
}
